package yxk.task;

import kd.bos.context.RequestContext;
import kd.bos.exception.KDException;
import kd.bos.schedule.executor.AbstractTask;
import yxk.task.utils.SaveSignCardsService;
import yxk.utils.DateUtil;

import java.util.Date;
import java.util.Map;

/**
 * 本月开始时间至昨天的补原始卡记录
 */
public class SignCardsServiceTask extends AbstractTask {
    @Override
    public void execute(RequestContext requestContext, Map<String, Object> map) throws KDException {
        SaveSignCardsService signCards=new SaveSignCardsService();
        Date ofMonth = DateUtil.getFirstTimeOfMonth(new Date());
        Date dateEnd = DateUtil.getDateEnd(new Date());
        signCards.signApplyScheduled(ofMonth,dateEnd);
    }
}
